package com.util;

import java.util.Collection;

public class CollectionUtil {

	/**
	 * 判断集合是否为空
	 *
	 * @param list
	 * @return
	 */
	public static boolean isEmpty(Collection<?> collection) {
		return collection == null || collection.isEmpty();
	}

	/**
	 * 判断集合是否非空
	 * 
	 * @param list
	 * @return
	 */
	public static boolean isNotEmpty(Collection<?> collection) {
		return !isEmpty(collection);
	}

}
